package com.eh.factory.factoryMethod.store;

import com.eh.factory.factoryMethod.pizza.NYStyleCheesePizza;
import com.eh.factory.factoryMethod.pizza.Pizza;

/**
 * Created by David on 2016/4/26.
 */
public class NYPizzaStore extends PizzaStore {
    @Override
    protected Pizza create(String type) {
        Pizza pizza = null;
        if ("cheese".equals(type)) {
            pizza = new NYStyleCheesePizza();
        } else if ("calm".equals(type)) {
        } else if ("veggie".equals(type)) {
        }
        return pizza;
    }
}
